package com.bank.backend.boot.base.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 银行人员操作记录
 * @TableName bank_operation
 */
@TableName(value ="bank_operation")
@Data
public class BankOperation implements Serializable {
    /**
     * 操作记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 银行人员id
     */
    @TableField(value = "buid")
    private Long buid;

    /**
     * 账户id
     */
    @TableField(value = "aid")
    private Long aid;

    /**
     * 操作类型 0-正常，1-冻结，2-销户...
     */
    @TableField(value = "type")
    private Integer type;

    /**
     * 结果 0-流程中，1-生效，2-未生效
     */
    @TableField(value = "result")
    private Integer result;

    /**
     * 结束时间
     */
    @TableField(value = "finish_time")
    private Date finishTime;

    /**
     * 解释
     */
    @TableField(value = "description")
    private String description;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}